<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 小夏 < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace plugins\wechat_zhl\validate;

use think\Validate;

class AdminWechatValidate extends Validate
{
    protected $rule = [
        // 用|分开
        'name'       => 'require',
        'app_id'     => 'require',
        'app_secret' => 'require',
        'app_token' => 'require',
        'app_encodingaeskey' => 'require'
    ];

    protected $message = [
        'name.require'       => "微信平台名称不能为空！",
        'app_id.require'     => "微信平台 Id不能为空!",
        'app_secret.require' => '微信平台 Secret不能为空!',
        'app_token.require' => '微信平台 Token不能为空!',
        'app_encodingaeskey.require' => '微信平台 EncodingAESKey不能为空!'
    ];
}